package com.atguigu07.encapsulation.exer3;

/**
 * ClassName: Employee
 * Description:
 *
 * @Author liu
 * @Create 2024/8/26 16:04
 * @Version 1.0
 */

public class Employee {
    private String name;
    private char gender;
    private int age;
    private String phoneNumber;

    public void  getName(String na){
        name = na;
    }
    public String setName(){
        return this.name;
    }
    public void  getGender(char gen){
        gender = gen;
    }
    public char setGender(){
        return this.gender;
    }
    public void  getAge(int a){
        age = a;
    }
    public int  setAge(){
        return this.age;
    }
    public void getPhoneMumder(String phone){
        phoneNumber = phone;
    }
     public String setPhoneMumber(){
        return phoneNumber;
    }
    public String getInfO(){
        return name + "\t" + gender  +"\t "+age+"\t"+phoneNumber +"\t";
    }
}
